import Cookies from "js-cookie";

const TokenKey = "hrsaas-ihrm-token"; // 自己设置一个key

const Timekey = "hrsaas-ihrm-token"; // 设置一个时间key
export function getToken() {
  return Cookies.get(TokenKey);
}

export function setToken(token) {
  return Cookies.set(TokenKey, token);
}

export function removeToken() {
  return Cookies.remove(TokenKey);
}
// 获取登录时间
export function getTimeKey() {
  return Cookies.get(Timekey);
}

// 设置登录时间
export function setTimeKey() {
  Cookies.set(Timekey, Date.now());
}
